package com.yaodian100.ec.mailbanner.service;

import java.io.File;
import java.util.List;

import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.common.service.DomainService;
import com.yaodian100.ec.mailbanner.entity.MailBanner;

/**
 * @author matt.tsai
 */
public interface MailBannerService extends DomainService<MailBanner> {
	
	/**
	 * 汇入礼券序号
	 * @param mailBannerId
	 * @param couponTxtFile 礼券序号文字档
	 * @throws CoreException
	 */
	public void importMailBannerCoupon(long mailBannerId,File couponTxtFile) throws CoreException;
	
	/**
	 * 依投放位置取得目前上架中广告
	 * @param position
	 * @return
	 * @throws CoreException
	 */
	public List<MailBanner> getMailBannerByPosition(String position) throws CoreException;
	
}
